home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5461 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  799 b 

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. Newsgroups: comp.lang.c
  3. Subject: Re: Can I assume the FIRST field of a STRUCT is at OFFSET 0?
  4. Message-ID: <danpop.823790881@rscernix>
  5. From: danpop@mail.cern.ch (Dan Pop)
  6. Date: 8 Feb 96 14:48:01 GMT
  7. References: <KIN.96Feb7142238@sampras.isi.com>
  8. Organization: Air Force Flight Test Center
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <KIN.96Feb7142238@sampras.isi.com> kin@isi.com (Kin Cho) writes:
  13.  
  14. >Is this specified one way or the other in ANSI C?
  15. >Have you run into a platform where this assumption fails?
  16.  
  17. The first member of a structure is _always_ at offset 0. 
  18. This is required by the standard.
  19.  
  20. Dan
  21. --
  22. Dan Pop
  23. CERN, CN Division
  24. Email: danpop@mail.cern.ch 
  25. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  26.